import { Http } from "../utils/http";

class Auth {
    /**
     * 更新用户实名认证信息
     */
    static async createUserAuth(data) {
        return await Http.request({url: 'user-auth/real', data, type: 'POST'});
    }

    /**
     * 实名认证操作图片信息
     */
    static async imgUpdateWord(data) {
        return await Http.request({url: 'img-word', data, type: 'POST'});
    }

    /**
     * 学历认证
     */
    static async createUserEducation(data) {
        return await Http.request({url: 'user-auth/education', data, type: 'POST'});
    }

    /**
     * 工作认证
     */
    static async createUserJob(data) {
        return await Http.request({url: 'user-auth/job', data, type: 'POST'});
    }

    /**
     * 收入认证
     */
    static async createUserIncome(data) {
        return await Http.request({url: 'user-auth/income', data, type: 'POST'});
    }

    /**
     * 资产认证
     */
    static async createUserAssets(data) {
        return await Http.request({url: 'user-auth/assets', data, type: 'POST'});
    }

}

export {
    Auth
}